package com.yuyou.tas.util.bean;

import com.alibaba.fastjson.JSONObject;

import java.util.List;
import java.util.Map;
import java.util.Set;


public class LoginRedisObj {
		
	private Long userId;
	
	private String userName;
	
	private Long organizationId;

	/*private List<Long> organSubjects;

	private List<Long> organSectionIds;*/

	private Map<Long , List<Long>> organSubSecMap;
	
	private List<Long> dataSubjects;
	
	private Set<Long> baseSectionIds;
	
	
	private Boolean isSystem;
	
	private Boolean isManager;
	
	private Integer roleType;

	private Integer userType;

	private Set<String> pageUrlSet;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Long getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(Long organizationId) {
		this.organizationId = organizationId;
	}

	public List<Long> getDataSubjects() {
		return dataSubjects;
	}

	public void setDataSubjects(List<Long> dataSubjects) {
		this.dataSubjects = dataSubjects;
	}

	public Set<Long> getBaseSectionIds() {
		return baseSectionIds;
	}

	public void setBaseSectionIds(Set<Long> baseSectionIds) {
		this.baseSectionIds = baseSectionIds;
	}

	public Boolean getIsSystem() {
		return isSystem;
	}

	public void setIsSystem(Boolean isSystem) {
		this.isSystem = isSystem;
	}

	public Boolean getIsManager() {
		return isManager;
	}

	public void setIsManager(Boolean isManager) {
		this.isManager = isManager;
	}

	public Integer getRoleType() {
		return roleType;
	}

	public void setRoleType(Integer roleType) {
		this.roleType = roleType;
	}

	public Set<String> getPageUrlSet() {
		return pageUrlSet;
	}

	public void setPageUrlSet(Set<String> pageUrlSet) {
		this.pageUrlSet = pageUrlSet;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}



	/*public List<Long> getOrganSubjects() {
		return organSubjects;
	}

	public void setOrganSubjects(List<Long> organSubjects) {
		this.organSubjects = organSubjects;
	}

	public List<Long> getOrganSectionIds() {
		return organSectionIds;
	}

	public void setOrganSectionIds(List<Long> organSectionIds) {
		this.organSectionIds = organSectionIds;
	}*/

	public LoginRedisObj(Long userId, String userName, Long organizationId,
						 Map<Long, List<Long>> organSubSecMap,
						 List<Long> dataSubjects, Set<Long> baseSectionIds,
						 Boolean isSystem, Boolean isManager, Integer roleType,
						 Set<String> pageUrlSet , Integer userType) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.organizationId = organizationId;
		this.dataSubjects = dataSubjects;
		this.baseSectionIds = baseSectionIds;
		this.isSystem = isSystem;
		this.isManager = isManager;
		this.roleType = roleType;
		this.pageUrlSet = pageUrlSet;
		this.userType = userType;
		this.organSubSecMap = organSubSecMap;
	}

	public String toJson() {
		return JSONObject.toJSONString(this,true);
	}


	public Map<Long, List<Long>> getOrganSubSecMap() {
		return organSubSecMap;
	}

	public void setOrganSubSecMap(Map<Long, List<Long>> organSubSecMap) {
		this.organSubSecMap = organSubSecMap;
	}
}
